package Server;
/* file comment */
import java.util.*;

/**
 * @author Long Zheng
 *
 * @version $Revision: 1.0 $
 */

public class MedicalHistory {
	/**
	 * Field treatmentList.
	 */
	private static LinkedList<Treatments> treatmentList;

	/**
	 * Constructor for MedicalHistory.
	 */
	public MedicalHistory() {
		this.treatmentList = new LinkedList<Treatments>();
	}
	
	/**
	 * Method toString.
	 * @return String
	 */
	public String toString(){
		final String str = "";
		return str;
	}

	public boolean isEmpty() {
		return treatmentList.isEmpty();
	}

	public LinkedList<Treatments> getTreatmentList() {
		return treatmentList;
	}

	/**
	 * Method canAddTreatment.
	 * @param treatment Treatments
	 * @return boolean
	 */
	public boolean canAddTreatment(Treatments treatment){
		treatmentList.add(treatment);
		return true;
	}

//	remove treatment from the treatmentlist
	/**
	 * Method canRemoveTreatment.
	 * @param treatment Treatments
	 * @return boolean
	 */
	public boolean canRemoveTreatment(Treatments treatment) {
		return treatmentList.remove(treatment);
	}

}
